-- GENERATED SPELL FOR [Snowflake] --


function spell0_28153(pUnit, Event) --@Enchantment of Spell Haste,Self--
pUnit:FullCastSpellOnTarget(44604,pUnit)
pUnit:RegisterEvent('Sorts_28153', 564, 1)
end

function spell1_28153(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(50721,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28153', 6000, 1)
end

function spell2_28153(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(59280,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28153', 6000, 1)
end

function Sorts_28153(pUnit, Event)
local choix_sorts_28153 = math.random(0, 2)
if choix_sorts_28153 == 0 then
pUnit:RegisterEvent('spell0_28153', 1, 1)
end
if choix_sorts_28153 == 1 then
pUnit:RegisterEvent('spell1_28153', 1, 1)
end
if choix_sorts_28153 == 2 then
pUnit:RegisterEvent('spell2_28153', 1, 1)
end
end

function mob28153_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28153', math.random(1500, 3000), 1)
end

function mob28153_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28153_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28153_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28153, 1, 'mob28153_Action')
RegisterUnitEvent(28153, 2, 'mob28153_Leave')
RegisterUnitEvent(28153, 3, 'mob28153_Kill')
RegisterUnitEvent(28153, 4, 'mob28153_Die')
